#ifndef LOGIC_H
#define LOGIC_H

#include <QObject>
#include <QtSql>
#include <QStringList>

namespace logic
{
    bool openDB(const QString host, const QString dbName, const QString userName, const QString passwd);
    bool changeActiveUser(const QString userName, QString passwd);
    bool changeActiveLocalUser(const QString userName, QString passwd);
    bool deleteRowSingleDict(const QString &sqlTable, int rowId);
    QString hashPasswd(const QString &passwd);
    int permissions();

    QString hdSerial();
    //static QString _host;
    //static QString _dbName;
    //static QString _userName;

    QStringList getLocations();
    QStringList getSreets();
    QStringList getRoads();
    QStringList getDistricts();
    QStringList getTypesTr();
    QStringList getTypesDTP();
}





























#endif // LOGIC_H
